package com.csw.cloud.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import com.csw.cloud.entity.Folder;

/**
 * @author 1
 */
@Mapper
public interface FolderDao {
	public void addFolder(@Param("folder") Folder folder);

	public void addRootFolder(@Param("folder") Folder folder);

	public List<Folder> selectFolderListByFolderId(@Param("folderId") String folderId);

	public Folder selectRootFolderByUserId(@Param("userId") String userId);

	public Folder selectFolderById(@Param("folderId") String folderId);

	public Folder selectFatherFolderById(@Param("folderId") String folderId);

	public void deleteFolderById(@Param("id") String id);

	public List<Folder> selectAllFolderByFatherFolder(@Param("fatherFolder") Folder fatherFolder);

}
